package controllers;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import entities.Article;

import models.ArticleModel;

public class PrintEmailDeleteServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		String id = (String) request.getParameter("id");
		String title = (String) request.getParameter("title");
		
		request.setAttribute("id", id);
		request.setAttribute("title", title);
		try {
			request.getRequestDispatcher("/print/email_delete.jsp").forward(request, response);
		} catch (ServletException e) {
			//e.printStackTrace();
		}
	}
}
